package com.imooc.articles_mongodb_project.service;

import com.imooc.articles_mongodb_project.common.Result;
import com.imooc.articles_mongodb_project.dto.ArticleDTO;
import com.imooc.articles_mongodb_project.entity.Articles;
import com.imooc.articles_mongodb_project.query.ArticleQuery;

import java.util.List;

public interface IArticlesService {

    List<Articles> getAll();

    Result save(ArticleDTO articleDTO);

    Result getById(String id);

    Result list();

    Result listByParams(ArticleQuery articleQuery);

    Result update(ArticleDTO articleDTO);

    Result deleteOne(String id);
}
